package com.sumainfor.pc.gmio.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.service.ServiceSecretaryDeskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 *  服务秘书工作台
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-06-05 16:59
 **/
@Controller
@RequestMapping("/serviceSecretaryDesk")
public class ServiceSecretaryDeskController {

    @Autowired
    ServiceSecretaryDeskService serviceSecretaryDeskService;

    /**
    * <p>
    * 重要消息提醒
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @GetMapping("/getImport")
    public JsonResult getImport(){
        return serviceSecretaryDeskService.getImport();
    }



    /**
    * <p>
    * 日账单核对
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @GetMapping("/DailyReconciliation")
    public JsonResult DailyReconciliation(){
        return serviceSecretaryDeskService.DailyReconciliation();
    }

   /**
   * <p>
   * 根据手机号查询租客账单
   * </p>
   *
   * @author: zhoucong
   * @since:
   */
   @ResponseBody
    @GetMapping("/getAllTheBills")
    public JsonResult getAllTheBills(@RequestParam Map<String,Object> params){
       return serviceSecretaryDeskService.getAllTheBills(params);
   }

}
